GtkStyleContext is meant to have a GdkScreen
authorCarlos Garnacho <carlosg@gnome.org>
Sun, 6 Feb 2011 01:40:06 +0000 (02:40 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sun, 6 Feb 2011 10:21:42 +0000 (11:21 +0100)
commit217d3fd796c29c01dac9420b5ff599d2a55d9d73
tree99ce236dffa82f2be75850d8f1f6e7dcb4b89195
parentf23585b7bb96d3da3844337aa8a99609ddbb89d4
GtkStyleContext is meant to have a GdkScreen

It is used to get the default providers, without them
the style context can't do much. A check for NULL screen
is done before any sensitive call to
gtk_style_context_set_screen(), in the hope that any widget
will open the display before doing anything related to
styling. Fixes bug #641429, reported by Bastien Nocera.
gtk/gtkstyle.c
gtk/gtkstylecontext.c
gtk/gtkwidget.c